package com.emip.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emip.bean.PlanBean;
import com.emip.dao.PlanDAO;
import com.emip.service.PlanService;


@Service("planService")
public class PlanServiceImpl implements PlanService {

	@Autowired
	PlanDAO planDAO;
	
	public PlanBean merge(PlanBean plan) {
		return planDAO.merge(plan);
	}

	public List<PlanBean> findByTime(String startDate, String endDate,
			String siteId, int page, int size) {
		return planDAO.findByTime(startDate, endDate, siteId, page, size);
	}

}
